package com.platform.data.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.platform.base.domain.BaseLocation;
import com.platform.common.annotation.Excel;
import com.platform.common.annotation.Excels;
import com.platform.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * 热采集数据对象 meter_data
 * 
 * @author wangqi
 * @date 2020-09-27
 */
@Data
public class MeterRead extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 热表ID */
    @Excel(name = "热表ID")
    private String meterId;

    /** 累计热量 */
    @Excel(name = "累计热量")
    private String heat;

    /** 累计流量 */
    @Excel(name = "累计流量")
    private String flow;

    /** 当前功率 */
    @Excel(name = "当前功率")
    private String power;

    /** 瞬时流量 */
    @Excel(name = "瞬时流量")
    private String instant;

    /** 进水温度 */
    @Excel(name = "进水温度")
    private String inlet;

    /** 出水温度 */
    @Excel(name = "出水温度")
    private String outlet;

    /** 工作时间 */
    @Excel(name = "工作时间")
    private String meterWork;

    /** 工作时间 */
    @Excel(name = "采集时间")
    private String meterCreate;


    /** 热表时间 */
    @Excel(name = "热表时间")
    private String gatherTime;

    /** 地址信息 */
    @Excels({
            @Excel(name = "地址全称", targetAttr = "locationName"),
            @Excel(name = "地址代码", targetAttr = "locationId", type = Excel.Type.EXPORT)
    })
    private BaseLocation location;
    /** 地址id */
    private String locationId;
    /** 地址id */
    private String locationName;

}
